<%@ page import="com.visionarysoftwaresolutions.Tshirt" %>



<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="tshirt.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${tshirtInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'description', 'error')} required">
	<label for="description">
		<g:message code="tshirt.description.label" default="Description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${tshirtInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'price', 'error')} required">
	<label for="price">
		<g:message code="tshirt.price.label" default="Price" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="price" min="0" required="" value="${fieldValue(bean: tshirtInstance, field: 'price')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'size', 'error')} ">
	<label for="size">
		<g:message code="tshirt.size.label" default="Size" />
		
	</label>
	<g:select name="size" from="${tshirtInstance.constraints.size.inList}" value="${tshirtInstance?.size}" valueMessagePrefix="tshirt.size" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'color', 'error')} ">
	<label for="color">
		<g:message code="tshirt.color.label" default="Color" />
		
	</label>
	<g:select name="color" from="${tshirtInstance.constraints.color.inList}" value="${tshirtInstance?.color}" valueMessagePrefix="tshirt.color" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: tshirtInstance, field: 'pictures', 'error')} ">
	<label for="pictures">
		<g:message code="tshirt.pictures.label" default="Pictures" />
		
	</label>
	<g:select name="pictures" from="${com.visionarysoftwaresolutions.Picture.list()}" multiple="multiple" optionKey="id" size="5" value="${tshirtInstance?.pictures*.id}" class="many-to-many"/>
</div>

